.resumeContainer {
  display: flex;
  justify-content: center;
  padding: 20px;
  user-select: none;
  -webkit-user-select: none; /* 兼容 Safari */
  -ms-user-select: none;     /* 兼容 IE/Edge */
// @media 是 CSS 的媒体查询语法，用于根据不同的设备特性（如屏幕宽度、高度、分辨率等）应用不同的样式。这样可以让网页在不同设备（如手机、平板、电脑）上都能有良好的显示效果，实现"响应式设计"。
  @media screen and (max-width: 768px) {
    /* 这里的样式只会在屏幕宽度小于等于768px时生效 */
    padding: 10px;
  }
}

.resume {
  width: 210mm;
  min-height: 297mm;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

  @media screen and (max-width: 768px) {
    width: 100%;
    min-height: auto;
    box-shadow: none;
  }
}

.section {
  margin-top: 10px;
  margin-bottom: 10px;
  padding-left: 20px;
  padding-right: 20px;

  @media screen and (max-width: 768px) {
    margin-bottom: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
}

.sectionTitle {
  position: relative;
  width: 100%;
  height: 30px;
  display: flex;
  align-items: center;
  font-size: 18px;
  color: #333;
  box-sizing: border-box;
  background: transparent;
  
  // 图标
  .icon {
    position: absolute;
    left: 10px;
    font-size: 18px;
    z-index: 2;

    @media screen and (max-width: 768px) {
      font-size: 16px;
    }
  }
  // 文字
  .title {
    position: absolute;
    left: 60px;
    color: #333;
    font-size: 18px;
    z-index: 2;

    @media screen and (max-width: 768px) {
      left: 50px;
      font-size: 16px;
    }
  }
  // 横条
  &::after {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    height: 100%;
    width: calc(100% - 40px);
    background: #e5e5e5;
    z-index: 0;
  }

  // 左侧大箭头
  &::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 30px;
    background: #607d8b;
    clip-path: polygon(0 0, 80% 0, 100% 50%, 80% 100%, 0 100%);
    z-index: 1;
  }
}

//// 个人信息
.personalRow {
  display: flex;
  align-items: center;
  gap: 32px;

  @media screen and (max-width: 768px) {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}
// 个人头像
.personalImage {
  padding-top: 20px;
  width: 120px;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;

  @media screen and (max-width: 768px) {
    width: 90px;
    height: 90px;
    padding-top: 0;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    @media screen and (max-width: 768px) {
      border-radius: 50%;
    }
  }
}

// 信息主体
.personalInfo {
  flex: 1;
  display: flex;
  flex-direction: column;

  @media screen and (max-width: 768px) {
    width: 100%;
    align-items: center;
  }
}
// 姓名
.personalName {
  position: relative;
  padding-right: 180px;
  h1 {
    font-size: 35px;
    font-weight: bold;
  }
  h2 {
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 18px;
    font-weight: normal;
    margin: 0;
    text-align: right;
    white-space: nowrap;
  }
  
  @media screen and (max-width: 768px) {
    padding-right: 0;
    margin-bottom: 10px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    h1 {
      font-size: 22px;
      flex: 1;
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin: 0;
    }
    h2 {
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      font-size: 14px;
      text-align: right;
      margin-top: 0;
      flex-shrink: 0;
      margin-left: 12px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      color: #666;
      background: #fff;
      padding-left: 8px;
    }
  }
}
// 联系
.infoGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 10px;
  font-size: 16px;
  color: #333;
  align-items: center;

  @media screen and (max-width: 768px) {
    grid-template-columns: 1fr;
    font-size: 14px;
    row-gap: 6px;
    justify-items: center;
    text-align: center;
  }

  a {
    color: #1976d2;
    text-decoration: none;
  }
}

//// 个人信息（移动端）
.personalRowMobile {
  display: flex;
  align-items: center;
  gap: 32px;
  
  
}

//// 教育背景
.eduRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-weight: bold;
  font-size: 16px;
  gap: 50px;

  @media screen and (max-width: 768px) {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
  }
}
.eduPeriod {
  min-width: 140px;
  color: #222;
  @media screen and (max-width: 768px) {
    min-width: 110px;
  }
}
.eduSchool {
  min-width: 120px;
  color: #222;
  @media screen and (max-width: 768px) {
    min-width: 120px;
  }
}
.eduCollege {
  min-width: 220px;
  color: #222;
  @media screen and (max-width: 768px) {
    font-size: 12px;
    min-width: auto;
  }
}
.eduDegree {
  min-width: 120px;
  color: #222;
}
.eduCourses {
  font-size: 14px;
  color: #444;
  margin-left: 2px;
  margin-top: 2px;
  text-indent: 2em;
  line-height: 1.7;

  @media screen and (max-width: 768px) {
    font-size: 13px;
    text-indent: 1em;
    line-height: 1.5;
  }
}

//// 项目经历
.projectItem {
  margin-bottom: 18px;
}
.projectRow {
  display: flex;
  width: 100%;
  font-weight: bold;
  font-size: 16px;
  gap: 12px;
  justify-content: flex-start;

  @media screen and (max-width: 768px) {
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
  }
}
.projectRow > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.projectPeriod {
  flex: 1.1;
  text-align: left;

  @media screen and (max-width: 768px) {
    flex: none;
  }
}
.projectName {
  flex: 1.5;
  text-align: right;

  @media screen and (max-width: 768px) {
    flex: none;
    text-align: left;
  }
}
.projectDesc {
  font-size: 15px;
  color: #333;
  margin-top: 2px;
  line-height: 1.7;
  text-indent: 2em;
  white-space: pre-line; // 让\n自动换行

  @media screen and (max-width: 768px) {
    font-size: 13px;
    line-height: 1.5;
    text-indent: 1em;
    margin-top: 8px;
  }
}

// 实习经历
.experienceRow {
  display: flex;
  width: 100%;
  font-weight: bold;
  font-size: 16px;
  gap: 12px;

  @media screen and (max-width: 768px) {
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
  }
}
.experiencePeriod {
  flex: 1.1;
  text-align: left;

  @media screen and (max-width: 768px) {
    flex: none;
  }
}
.experienceCompany {
  flex: 2.5;
  text-align: left;

  @media screen and (max-width: 768px) {
    flex: none;
  }
}
.experiencePosition {
  flex: 1.5;
  text-align: right;

  @media screen and (max-width: 768px) {
    flex: none;
    text-align: left;
  }
}
.experienceDesc {
  font-size: 15px;
  color: #333;
  margin-top: 2px;
  line-height: 1.7;
  text-indent: 2em;
  white-space: pre-line; // 让\n自动换行

  @media screen and (max-width: 768px) {
    font-size: 13px;
    line-height: 1.5;
    text-indent: 1em;
    margin-top: 8px;
  }
}

.skills {
  background: #fffbe6;
  border-left: 4px solid #ffd700;
  border-radius: 6px;
  padding: 18px 24px 14px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.08);

  @media screen and (max-width: 768px) {
    padding: 15px 18px 12px 18px;
    margin-bottom: 15px;
  }
}
.skillTitle {
  font-size: 17px;
  font-weight: bold;
  color: #b48800;
  margin-bottom: 6px;

  @media screen and (max-width: 768px) {
    font-size: 15px;
    margin-bottom: 4px;
  }
}
.skillDesc {
  font-size: 15px;
  color: #333;
  line-height: 1.9;
  margin-bottom: 10px;
  text-indent: 2em;

  @media screen and (max-width: 768px) {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 8px;
    text-indent: 1em;
  }
}